package com.egao.common.module.integral.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分总表实体类
 * @author pyx
 * @date 2021/5/10
 */
@ApiModel(description = "积分总数")
@TableName("integral_aggregate")
@Data
public class IntegralAggregate implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("学生id")
    @TableId(value = "student_id")
    private Integer studentId;

    @ApiModelProperty("学生获得的总积分数")
    private Integer allIntegral;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;
}
